package com.lcz.cloud_note.dao;

import com.lcz.cloud_note.entity.ActionDetail;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ActionDetailDao
{

    List<ActionDetail> listByActionId(@Param("actionDetailId") String actionDetailId, @Param("begin") int begin,@Param("end") int end);

    int insert(ActionDetail actionDetail);

    int dynamicUpdate(ActionDetail actionDetail);

    ActionDetail getByActionIdAndNoteId(@Param("actionDetailId") String actionDetailId,@Param("noteId") String noteId);

    ActionDetail getById(String actionDetailId);

    ActionDetail getByNoteId(String noteId);

    List<ActionDetail> listByUserId(String userId);

    ActionDetail findByNoteId(String noteId);
}
